from django import forms
from django.utils.translation import ugettext_lazy as _

#The form for creating a new comment.  Used by the Detail view
class CommentForm(forms.Form):
    body = forms.CharField(
                label=_("Comment text"), 
                widget=forms.Textarea(attrs={'rows':4, 'cols':60}))
                
class PostForm(forms.Form):
    title = forms.CharField(
                label =_("Post title"),
                widget=forms.TextInput(attrs={'size':'60'}))
                
    body = forms.CharField(
                label=_("Comment text"), 
                widget=forms.Textarea(attrs={'rows':4, 'cols':60}))